/**
 *
 */
package org.jprobe.ui;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
 * panel header
 * @author Hussain Al-Mutawa
 * @version 2.0
 * @since 2.0
 */
@SuppressWarnings("serial")
public class Header extends JPanel {
	public Header() {
		super();
		JPanel pnl0,pnl1;
		JLabel lbl1,lbl2;
		ImageIcon imageIcon;

		setLayout(new BorderLayout());
		pnl0=new JPanel();
		pnl1=new JPanel();
		pnl1.setBackground(Color.WHITE);
		pnl1.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));

		imageIcon= new ImageIcon(getClass().getResource("jprobe.jpg"));

		pnl0.setLayout(new BorderLayout());
		pnl0.setBackground(Color.WHITE);
		pnl0.add(pnl1,BorderLayout.CENTER);
		//pnl0.setBorder(BorderFactory.createEtchedBorder());

		this.add(pnl0,BorderLayout.NORTH);
		lbl1=new JLabel(
					"<html><div style='padding:5pt'>"+
					 "<span style='font-weight:bold;font-size:15pt;color:green'>jProbe</span>"+
					 "<br/>1.0<br/><em style='color:gray;font:smaller'>"+
					 "Java project unit testing generator</em></div></html>");

		lbl2=new JLabel(imageIcon);
		pnl0.add(lbl2,BorderLayout.WEST);
		pnl1.setLayout(new BoxLayout(pnl1, 1));
		pnl1.add(lbl1);
	}


}
